The location of cosmic microwave background peaks in a universe with dark energy