Estimating parameters of binary black holes from gravitational-wave observations of their inspiral, merger and ringdown