Mechanics of longitudinal and flexural locally resonant elastic metamaterials using a structural power flow approach. (March 2017)