Characterization and optimization of pyroelectric X-ray sources using Monte Carlo spectral models