Text this: Generalized Buchdahl equations as Lie–Hamilton systems from the 'book' and oscillator algebras: quantum deformations and their general solution