Mohammad Amir, one of the Pakistan cricketers involved in last years spot-fixing scandal, has been released from prison.