Molecular calculations using the muffin-tin orbital method