Former Thai PM appears in court to answer junta charges