Studies on the structure function relationships of membrane active segments derived from pore forming toxin and anti microbial peptides