Teachers in England and Wales vote to strike over pay