Tim Cook says he came out as gay to inspire kids