General Conditions for Comparing the Reliability Functions of Systems of Components Sharing a Common Environment