Automatic brain extraction from MRI of human head scans using Helmholtz free energy principle and morphological operations. (February 2021)