By what Buddhist doctrines, tenets or philosophies did Zen masters develop their unconventional and dramatic teachings and practices?