Dark-photon search using data from CRESST-II Phase 2