Vertex-colouring edge-weightings with two edge weights