Brain computer interface and transcranial magnetic stimulation in legal practice and regulations