Optimal control of freeways via speed signalling and ramp metering