Regression discontinuity design with unknown cutoff: cutoff detection & effect estimation