Effective parameters and energy of acoustic metamaterials and media