Quantum variant of Montgomery identity and Ostrowski-type inequalities for the mappings of two variables