RVNL, IRFC shares gain up to 5% as railway stocks move in tandem with PSU rebound