Dictionary and prior learning with unrolled algorithms for unsupervised inverse problems