Bifurcations of periodic trajectories in non-integrable Hamiltonian systems with two degrees of freedom: Numerical and analytical results