Matrix formulation of reliability analysis and reliability-based design