Time-dependent Dalitz-plot formalism for Bq0→J/ψh+h−