Performance of the resistive plate chambers in the ARGO-YBJ experiment