Vibration Attenuation and Amplification of One-Dimensional Uncoupled and Coupled Systems with Optimal Metafoundations