Inappropriate rate response in a leadless pacemaker due to automatic rate profile optimization