Regular graphs with prescribed odd girth