Rotherham came from a goal down to beat Preston 3-1 to claim a 4-2 aggregate win in the League One play-off semi-final at the New York Stadium.