The spatial dimension of energies: urban patterns and energy strategies