Protein evolution in the membrane of microscopic organisms: insights from gram-negative bacteria and SARS-CoV-2 through modeling and machine learning