Pope tells judges at Vatican-based tribunal that prayer is essential