Construction of variance-based metamodels for probabilistic seismic analysis and fragility assessment