Almost periodic solutions for a class of higher dimensional Schr?dinger equations