Dundee United sign former Celtic and Motherwell striker Scott McDonald