An Observer for Mass-action Chemical Reaction Networks