Phase transitions of single polymer chains and of polymer solutions: insights from Monte Carlo simulations