EU energy ministers agree on measures to tackle energy crisis