Steve Bruce resigns as boss of Sheffield Wednesday amid reports he is due to be appointed as the manager of Newcastle United.