Local optimal transport for functional brain template estimation