Unicity theorems for entire or meromorphic functions