Energetics of silicon nanowires: a molecular dynamics investigation