MOSCOW — President Vladimir V. Putin ordered a surprise military exercise of ground forces in western Russia and air forces across the country on Wednesday, intending to demonstrate the country’s military preparedness amid tensions with Europe and the United States over the turmoil in Ukraine.