Why were the shinto and buddhism important to the development of japanese culture?