A phase field approach for damage propagation in periodic microstructured materials