Measurements of B0 and B0s mixing frequencies at LHCb