Automated crystal orientation and phase mapping in TEM