Mid-America Apartment Communities buys upscale community in Va.