Global Analysis and bifurcations in two-dimensional endomorphisms by use of critical curves