Irreversibility line and non-linearity in the AC response caused by flux pinning in high-Tc superconductors