Analysis of proton bunch parameters in the AWAKE experiment