Relative stability of crystal and amorphous states for tetrahedrally coordinated particles and nanostructures