Influences of clinical factors on marginal adaptation and residual mercury content of amalgam