A new computational model to study mass inhomogeneity and hydrophobicity inhomogeneity in proteins