What are the main components of a protection relay system and how do they work together to ensure system safety?