Analytical energy gradient for the embedded cluster density approximation.