Demba Ba scored twice after coming on as a substitute for Newcastle to earn a draw for his side against Everton.