Pharmaceuticals firms fined for chemical incidents at welsh plant