Vortex dynamics and irreversibility line in optimally doped SmFeAsO0.8F0.2 from ac susceptibility and magnetization measurements