On available energy in the ocean and its application to the Barents Sea