Cluster molecular orbital models of melting and the amorphous state