Methods for Analysis of Urban Energy Systems: A New York City Case Study