What is the relationship between rocks and minerals?