From finite charged nuclei to infinite symmetric nuclear matter and its phase diagram