Theoretical investigation of van der Waals forces between solid surfaces at nanoscales