Bifurcation diagrams and global phase portraits for some hamiltonian systems with rational potentials