Optimal Node Deployment Scheme for WSN-Based Railway Environment Monitoring System