Boundary relations and generalized resolvents of symmetric operators