Inexact methods for the chemical master equation with constant or time-varying propensities, and application to parameter inference