how are ore formed how are they prossed