Correlation between grain size and device parameters in pentacene thin film transistors