In 2008, J. David Marley, an engineer who owned a construction firm in Amherst, Mass., had an idea. He had just finished building a large solar array on the rooftop of his downtown office building. The labor and effort to put it up there, he had learned, was much more expensive than if he had built the solar array on the ground.