Election Commission writes to Civil Aviation and Railways Ministries that violated poll code