Phase transitions and magnetic domain coexistence in Nd0.5Sr0.5MnO3 thin films