@Sancho: There doesn't seem to be a rule, and as far as I know, some words are pronounced differently from region to region.
Although I found some "
guidelines" that you might find useful, I'm afraid it's only a matter of getting used to how native speakers pronounce them.