Russia-dependent Europe learns necessary lesson on energy security: Official