Germany voices 'cautious optimism' Libya conflict can be resolved