Circumstellar interaction in type Ibn supernovae and SN 2006jc