Energy Shaping over Networks for Mechanical System