Multilayer formulation of the fragment molecular orbital method (FMO).