Guernsey regulator appoints law officer as director-general