Prolongation of Tanaka structures and regular CR structures