Structural, electronic and mechanical properties of RuO2 from first-principles calculations