Ages and structural and dynamical parameters of two globular clusters in the M81 group