Theoretical investigation of the growth of 2D silicene and germanene