Exchange energy of a quasi-2D electron gas in a V-shaped potential