A geometrically exact isogeometric beam for large displacements and contacts