Elastic waves in fractured rocks under periodic compression