Folding and regulation in myosins II and V