Designing criteria for selectivity and reliability of building power systems