Environment Friendly Energy Cooperation in Neighboring Buildings: A Transformed Linearization Approach