Properties of a YBCO/insulator/YBCO trilayer and its application to a multilayer Josephson junction