Aberdeen came from a goal behind to ease past second-tier St Johnstone for a place in the Women's Scottish Cup semi-final.