Singer Carly Simon has sold her two-bedroom apartment in New York City for close to its $2.3 million (£1.5 million) asking price.