Modification of beam intensity on target volume employing an adjustable beam flattening system in proton therapy