Protective relays and their types