Reciprocal-space engineering of quasi-bound states in the continuum in photonic crystal slabs for high-Q microcavities