Performance evaluation and tuning of GRAPE-6 - towards 40 "real" Tflops