Theoretical study of silicene and germanene