The nucleon as a relativistic three-quark system