magnetic and non magnetic substances