Doctor struck off after he was snared by undercover police