A method of switching SS7 messages, network configuration and network element