Energy associated with waves