Man charged with robbing York Co. credit union