Computational dynamic homogenization for the analysis of dispersive waves in layered rock masses with periodic fractures