A method based on small amplitude homogenization for detecting defects using elastic waves