Linear magnetoelectric memory and training effect in the honeycomb antiferromagnet Co4Nb2