Exercise stimulates brain function thanks to its effect on muscles, study suggests