Frequency content in an axially impacted bar subject to boundary conditions