Optimal quantum estimation of the coupling between two bosonic modes