An energy estimate for the complex Monge-Ampère operator