Relating graph energy and Sombor index