A simple and general strategy for generating frequency-anticorrelated photon pairs