Text this: Montgomery identity and Ostrowski-type inequalities via quantum calculus