ECB lifts rates to 2.40% as energy shock keeps inflation elevated