First-principles study of liquid and amorphous Sb2Te3