A gradient-based polynomial chaos approach for risk and reliability-based design optimization